<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/xhtml">

<xsl:output
	method="xml"
	indent="yes"
	encoding="UTF-8"
	omit-xml-declaration="yes"/>


<xsl:include href="template-game.xsl"/>


<xsl:template name="content" mode="message">
	<h1>Message</h1>

	<xsl:for-each select="messages/message">
		<section>
			<header>
				<h2><xsl:value-of select="subject"/></h2>
				<p>
					Rreçut le <time pubdate="pubdate"><xsl:value-of select="@datetime"/></time>
				</p>
			</header>
			<article>
				<p>
					<xsl:call-template name="xparse-tag">
						<xsl:with-param name="root" select="contain"/>
					</xsl:call-template>
				</p>
			</article>
			<footer>
				<p>
					<a href="?id[]={@id}">Supprimer le message</a>
				</p>
			</footer>
		</section>
	</xsl:for-each>
</xsl:template>


</xsl:stylesheet>